package com.revzone.demo001.entity.PermissionEntity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_role")
public class UserAndRole implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableField("user_id")
    private Integer userId;
    @TableField("role_id")
    private Integer roleId;

    public UserAndRole(Integer userId, Integer roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
}
